package com.xian;

public class MyTest {
    public static void main(String[] args) {

        System.out.println("Java Test !");

        //测试斐波那契数列
        // 0 1 1 2 3 5 8 13 21 34 55
        for (int i = 0; i<=9; i++) {
            System.out.printf("第%d个斐波那契数列为：%d"+System.lineSeparator(), i, fbn(i));

        }


        System.out.println("|"+System.lineSeparator()+"|");


    }


    public static long fbn(int n){
        if (n<=1)
            return n;
        return fbn(n-1) + fbn(n-2);
    }


}
